
import 'jdsdk_platform_interface.dart';

class Jdsdk {

  Future<String?> getPlatformVersion() {
    return JdsdkPlatform.instance.getPlatformVersion();
  }
  static Future<String> init({required String appKey, required String appSecret}) async {
    final String version = await JdsdkPlatform.instance.init(appKey: appKey, appSecret: appSecret);
    return version;
  }
  ///打开京东任意url
  static Future<String> openUrl({required String url}) async {
    final String version = await JdsdkPlatform.instance.openUrl(url: url);
    return version;
  }
}
